<?php
/**
 * 小程序接口定义
 *
 * @author alluu
 * @url
 */

define('IN_MOBILE', true);
require '../../framework/bootstrap.inc.php';

$order = pdo_getall('yzzc_sun_order',['expired_date >'=>0]);
if ($order){
    foreach ($order as $value){
        if ($value['expired_date'] <= time() && $value['status'] == 1){
            pdo_update('yzzc_sun_order',['status'=>4],['id'=>$value['id']]);
        }
    }
}
exit(json_encode(['msg'=>'success']));
